package edu.zut.hb.ambition.medicinal.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MedicinalMapper;
import com.ruoyi.system.domain.Medicinal;
import com.ruoyi.system.service.IMedicinalService;


@Service
public class MedicinalServiceImpl implements IMedicinalService
{
    @Autowired
    private MedicinalMapper medicinalMapper;


    @Override
    public Medicinal selectMedicinalByDrugid(Long drugid)
    {
        return medicinalMapper.selectMedicinalByDrugid(drugid);
    }


    @Override
    public List<Medicinal> selectMedicinalList(Medicinal medicinal)
    {
        return medicinalMapper.selectMedicinalList(medicinal);
    }


    @Override
    public int insertMedicinal(Medicinal medicinal)
    {
        return medicinalMapper.insertMedicinal(medicinal);
    }


    @Override
    public int updateMedicinal(Medicinal medicinal)
    {
        return medicinalMapper.updateMedicinal(medicinal);
    }


    @Override
    public int deleteMedicinalByDrugids(Long[] drugids)
    {
        return medicinalMapper.deleteMedicinalByDrugids(drugids);
    }


    @Override
    public int deleteMedicinalByDrugid(Long drugid)
    {
        return medicinalMapper.deleteMedicinalByDrugid(drugid);
    }
}
